<?php
/**
 * 
 */
namespace app\manage\controller\agenttype;

use app\manage\controller\Base;

class Api extends Base
{

    /**
     * 代理类型
     * @return [type] [description]
     */
    public function rows(){
        $params = $this->request->param();
        $id = isset($params['id'])?$params['id']:null;

        $data = model('agent_type')::agentTypeData($id);

        return json(['code'=>1,'data'=>$data]);
    }
    
}